package com.dyz.model;

import com.dyz.domain.SysMenu;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.security.core.authority.SimpleGrantedAuthority;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(description = "登录结果")
public class LoginUserResult {
    @ApiModelProperty(value = "token")
    private String token;
    @ApiModelProperty(value = "用户信息")
    private List<SysMenu> menus ;
    @ApiModelProperty(value = "用户的权限")
    private List<SimpleGrantedAuthority> authorities;
}
